/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

 function registrarUsuario(){
	$.ajax({
	    url: 'http://localhost/testing/trunk/web/app_dev.php/Usuarios/insert',
	    type: 'PUT',
	    beforeSend: function(xhr) {  
            xhr.setRequestHeader("Accept", "application/json");  
            xhr.setRequestHeader("Content-Type", "application/json");  
        },  
	    data: JSON.stringify($('#form').formToJSON()),
	    success: function(result) {
	    	console.log(result);		        
	    }
	});
}   